﻿@model EbayApplication.Web.Models.ProductModels.AddProductViewModel

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

    
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="form-horizontal">
        <legend>Product</legend>
        @Html.Partial("~/Views/Products/_ProductForm.cshtml", Model)
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

<script>
    function imageUrl() {
        var fu1 = $(".k-filename").first();
        $("#hiddenImageUrl").val(fu1.attr("title"));
    }
</script>